<?php
namespace app\baseinfo\validate;

class Customer extends \app\common\validate\Base {
	protected $rule=[
		'name|客户名称'=>'length:0,20',
		'nick_name|客户昵称'=>'length:0,30',
		'role|客户角色'=>'length:0,20',
		'sex|客户性别' => 'regex:[01]',
		'birth|生日' => 'number',
		'profession|职业'=>'length:0,30',
		'phone|手机号码'=>'mobile|unique:xl_customer',
		'wechat|微信名'=>'length:0,32',
		'open_id|微信id'=>'length:32',
		'total_point|总积分数'=>'number',
		'balance|余额'=>'number'
	];
	protected $create_require=['name'];
}
?>